using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using System;
using System.Linq;
using System.Text;

public class settings : MonoBehaviour
{
    public GameObject voiceRange;
    public GameObject voicePercent;
    // Start is called before the first frame update
    void Start()
    {
        voiceRange.GetComponent<Slider>().value = 0.5f;
        changeVoice();
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void changeVoice()
    {
        var str1=Convert.ToString(Convert.ToInt32(voiceRange.GetComponent<Slider>().value * 100.0f))+"%";
        voicePercent.GetComponent<TextMeshProUGUI>().text = str1;
    }
        
    
}
